package com.itheima.mongo.service;

import com.itheima.mongo.pojo.ApComment;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @Description:
 * @Version: V1.0
 */
public interface ApCommentService {


    public void saveComment(ApComment comment);

    public void deleteCommentById(String id);

    public void updateComment(ApComment comment);

    public List<ApComment> findCommentList();

    public ApComment findCommentById(String id);


    public List<ApComment> findCommentListByAddress(String address);


    /**
     * 根据条件查询带分页
     * @param address
     * @return
     */
    Page<ApComment> findByAddress(String address,  Integer page, Integer size);

    Page<ApComment> findByAddressAndLikesGreaterThan(String address, Integer likes, Integer page, Integer size);
}
